#include <bits/stdc++.h>
using namespace std;

using llt = long long;
using vi = vector<int>;
using pii = pair<int, int>;
using vpii = vector<pii>;

template<typename T>
void input(vector<T> & a, int n){
    a.assign(n + 1, {});
    for(int i=1;i<=n;++i) cin >> a[i];
    return;
}

int N;
vpii A;
void work(){
    cin >> N;
    A.assign(N + 1, {});
    for(int i=1;i<=N;++i) cin >> A[i].first >> A[i].second;
    for(int i=1;i<=N;++i){
        int x = A[i].first, y = A[i].second;
        int k = i;
        int ans = 0;
        for(int j=1;j<=N;++j){
            int u = x - A[j].first, v = y - A[j].second;
            if(u * u + v * v > ans){
                ans = u * u + v * v;
                k = j;
            }
        }
        cout << k << endl;
    }
    return;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--) work();
    return 0;
}